<template>
  <div class="header">
    <div class="header-left">
      <span class="iconfont">&#xe624;</span>
    </div>
      <div class="header-middle">
        <span class="iconfont icon-search">&#xe632;</span>
        <div class="kw">输入城市/景点/游玩主题</div>
        <input class="header-input"/>
      </div>
      <div class="header-right">
        城市
        <span class="iconfont">&#xe604;</span>
      </div>
    </div>
</template>

<script>
export default {
  name: 'HomeHeader'
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="stylus">
  @import '~styles/variables.styl'
  div {
    display: flex;
  }

  .header {
    width: 100%;
    height: .88rem;
    background-color: $bgColor;
    color: #fff;
  }

  .header-left {
    width: .8rem;
    height: 100%;
    justify-content: center;
    line-height: .88rem;
  }

  .header-middle {
    flex: 1;
    position: relative;
    margin: .14rem 0;
  }

  .header-middle .icon-search {
    position: absolute;
    top: .13rem;
    left: .2rem;
    color: #e4e7ea;
  }

  .header-middle .kw {
    position: absolute;
    top: .12rem;
    left: .68rem;
    color: #e4e7ea;
  }

  .header-middle .header-input {
    width: 100%;
    height: 100%;
    border-radius: .06rem;
  }

  .header-right {
    width: 1.32rem;
    height: 100%;
    justify-content: center;
    line-height: .88rem;
  }
</style>
